const aipackApi = 'aipack-api-server'
// 登录前的准备
export function wxPreLogin(data) {
  return new Promise(function(resolve, reject){
    uni.$http.post(`${aipackApi}/wx/api/preLogin`,data)
    .then(body => {
      const res = body.body
      resolve(res)
    })
  })
}
export function swiperdata() {
  return new Promise(function(resolve, reject){
    uni.$http.get('/api.public/v1/home/swiperdata')
    .then(body => {
      const res = body
      resolve(res)
    })
  })
}